#include "logheader.h"
void binlog_header::encode(PTL_BUFFER buffer) {
	this->timestamp = buffer->read_uddword_le();
	this->typecode = buffer->read_uword();
	this->serverid = buffer->read_uddword_le();
	this->eventlength = buffer->read_uddword_le();
	this->nextposition = buffer->read_uddword_le();
	this->flags = buffer->read_udword_le();
}

PTL_BUFFER binlog_header::decode() {
	return nullptr;
}